/*
 * author: VDaras
 */

#ifndef TIMER_H
#define	TIMER_H

#include "SDL/SDL_timer.h"

/*
 * Class wrapping up SDL_Timer functionality
 */

namespace sdl
{

class Timer
{
private:
    Uint32 m_ticks;
    Uint32 m_pausedTicks;
    bool m_started;
    bool m_paused;

public:
    Timer();
    ~Timer();

    Uint32 GetTicks() const;
    void Start();
    void Stop();
    void Pause();
    void Unpause();
};

};

#endif	/* TIMER_H */

